<?php

namespace Modules\Admin\Database\factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Modules\Admin\Entities\Admin;

class AdminFactory extends Factory {
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = Admin::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition() {
        return [
            'username' => $this->faker->userName,
            'name' => $this->faker->name,
            //            'password' => \Illuminate\Support\Facades\Hash::make('admin3'),
            'password' => '$2y$10$8X2LejyZK6noAGpaUrnP4ew96Mbi1eqYQHM4TMIJyMK/zw3XYDPRO',
            'mobile' => $this->faker->phoneNumber,
            'enable_status' => $this->faker->boolean(),
        ];
    }
}

